﻿using System.Collections.Concurrent;
using Geek.Server.Core.Actors;
using Geek.Server.Core.Comps;
using Geek.Server.Core.Storage;

namespace Geek.Server.App.Logic.Login
{
    public class LoginState : CacheState
    {
        /// <summary>
        /// 账号id对应的角色id
        /// </summary>
        public ConcurrentDictionary<long, long> AccountIdToRoleIdMap = new();
    }

    [Comp(ActorType.Server)]
    public class LoginComp : StateComp<LoginState>
    {
        /// <summary>
        /// 角色id对应的重连票据
        /// </summary>
        public Dictionary<long, string> RoleIdToReconnectTokenMap = new();
    }

}
